]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Reset opacity when not animating
authorAdel Gadllah <adel.gadllah@gmail.com>
Sun, 4 Aug 2013 09:35:35 +0000 (11:35 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sun, 4 Aug 2013 09:37:56 +0000 (11:37 +0200)
We are not resetting the opacity when we are not animating, which can cause
a hidden window to end up with opacity 0 if we remove the tween to early.

js/ui/workspace.js

index 05159c840165f3996d00e31cab6d82b8cb6c3b6b..a2716efd96b2951026098aba049a270860a0d532 100644 (file)
@@ -1141,6 +1141,7 @@ const Workspace = new Lang.Class({
                 Tweener.removeTweens(clone.actor);
                 clone.actor.set_position(x, y);
                 clone.actor.set_scale(scale, scale);
+                clone.actor.set_opacity(255);
                 clone.overlay.relayout(false);
                 this._showWindowOverlay(clone, overlay, isOnCurrentWorkspace);
             }